package com.menhai.personmanagement.controller;

import com.menhai.personmanagement.entity.co.UserCo;
import com.menhai.personmanagement.entity.vo.FrontPageVo;
import com.menhai.personmanagement.entity.vo.SysOperateVo;
import com.menhai.personmanagement.entity.vo.UserVo;
import lombok.extern.slf4j.Slf4j;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import com.menhai.personmanagement.services.ISysOperateService;
import com.menhai.personmanagement.entity.SysOperate;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;

/**
 * <p>
 * 用户操作 前端控制器
 * </p>
 *
 * @author shikun
 * @since 2022-01-24
 */

@Slf4j
@RestController
@RequestMapping("/sys-operate")
public class SysOperateController {

     @Autowired
     private ISysOperateService sysOperateService;

     /**
      * @describe 登录人每日操作次数
      * @param sysOperate
      * @Return java.util.List<com.menhai.personmanagement.entity.vo.SysOperateVo>
      * @Date 2022/1/25 13:39
      * @author shikun
      */
     @RequestMapping("/selectByCurrUserAll")
     public List<SysOperateVo> selectByCurrUserAll(SysOperate sysOperate){
          List<SysOperateVo> list = sysOperateService.selectByCurrUserAll(sysOperate);
          return list;
     }

     @RequestMapping("/jobdatadoctorall")
     public SysOperateVo jobdatadoctorall(@Param("currUser") String currUser){
          return sysOperateService.jobdatadoctorall(currUser);
     }
}
